﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace homeIMSClient.Model
{
    public class maintenanceInfo
    {
        //private variables to store information
        private int _maintID;
        private DateTime _date;
        private string _location;
        private int _price;
        private string _company;
        private string _comment;

        //public variables for retrieval/change
        public int MaintID
        {
            get { return _maintID; }
        }

        public DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }

        public string Location
        {
            get { return _location; }
            set { _location = value; }
        }

        public int Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public string Company
        {
            get { return _company; }
            set { _company = value; }
        }

        public string Comment
        {
            get { return _comment; }
            set { _comment = value; }
        }

        //constructor will take maintInfo and store information for use
        public maintenanceInfo(homeIMSRef.maintenanceInfo maintInfo)
        {
            //store informatio into private variables
            _maintID = maintInfo.maintID;
            _date = maintInfo.date;
            _location = maintInfo.location;
            _price = maintInfo.price;
            _comment = maintInfo.comment;
            _company = maintInfo.company;
        }
    }
}
